<?php

Yii::import('application.models._base.BaseTender');
class Tender extends BaseTender
{
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }
    public function beforeValidate()
    {
        $this->tdate = new CDbExpression('NOW()');
        $this->user_id = Yii::app()->user->getId();
        return parent::beforeValidate();
    }
}